package com.itheima.test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;

public class test3 {
    public static void main(String[] args) {
        HashSet<Person> set = new HashSet<>();
        Person per1 = new Person("小强",18);
        Person per2 = new Person("小强",18);
        set.add(per1);
        set.add(per2);
        System.out.println(set);
    }
}
